<template>
    <div class="hello_form">
        <swiper loop auto :list="demo06_list" :index="demo06_index" @on-index-change="demo06_onIndexChange"></swiper>
    </div>
</template>

<script>
import { Swiper, SwiperItem } from 'vux'

const baseList = [{
  url: '/sell',
  img: 'https://static.vux.li/demo/1.jpg',
  title: '送你一朵fua'
}, {
  url: 'javascript:',
  img: 'https://static.vux.li/demo/2.jpg',
  title: '送你一辆车'
}, {
  url: 'javascript:',
  img: 'https://static.vux.li/demo/3.jpg',
  title: '送你一次旅行'
}]

export default {
  components: {
    Swiper
  },
   methods: {
    demo06_onIndexChange (index) {
      this.demo06_index = index
    }
  },
  data () {
    return {
      demo06_list: baseList,
      demo06_index: 0,
      msg: 'Hello World!'
    }
  }
}

</script>

<style lang="less">

</style>